<?php
session_start( );
include_once("../DataProvider.php");
?>
<!doctype html>
<html class="no-js">
	<!-- InstanceBegin template="/Templates/loaisanpham.dwt.php" codeOutsideHTMLIsLocked="false" -->

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<!-- InstanceBeginEditable name="doctitle" -->
	<title>THÁI HUY COMPUTER</title>
	<!-- InstanceEndEditable -->
	<!--[if lt IE 9]>
	<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
	<![endif]-->
	<link rel="stylesheet" media="all" href="../css/style.css"/>
	<meta name="viewport" content="width=device-width, initial-scale=1"/>
	<!-- Adding "maximum-scale=1" fixes the Mobile Safari auto-zoom bug: http://filamentgroup.com/examples/iosScaleBug/ -->

	<!-- JS -->
	<script src="../js/jquery-1.7.1.min.js"></script>
	<script src="../js/custom.js"></script>
	<script src="../js/tabs.js"></script>
	<script src="../js/css3-mediaqueries.js"></script>
	<script src="../js/jquery.columnizer.min.js"></script>

	<!-- Isotope -->
	<script src="../js/jquery.isotope.min.js"></script>

	<!-- Lof slider -->
	<script src="../js/jquery.easing.js"></script>
	<script src="../js/lof-slider.js"></script>
	<link rel="stylesheet" href="../css/lof-slider.css" media="all"  />
	<!-- ENDS slider -->

	<!-- Tweet -->
	<link rel="stylesheet" href="../css/jquery.tweet.css" media="all"  />
	<script src="../js/tweet/jquery.tweet.js" ></script>
	<!-- ENDS Tweet -->

	<!-- superfish -->
	<link rel="stylesheet" media="screen" href="../css/superfish.css" />
	<script  src="../js/superfish-1.4.8/js/hoverIntent.js"></script>
	<script  src="../js/superfish-1.4.8/js/superfish.js"></script>
	<script  src="../js/superfish-1.4.8/js/supersubs.js"></script>
	<!-- ENDS superfish -->

	<!-- prettyPhoto -->
	<script  src="../js/prettyPhoto/js/jquery.prettyPhoto.js"></script>
	<link rel="stylesheet" href="../js/prettyPhoto/css/prettyPhoto.css"  media="screen" />
	<!-- ENDS prettyPhoto -->

	<!-- poshytip -->
	<link rel="stylesheet" href="../js/poshytip-1.1/src/tip-twitter/tip-twitter.css"  />
	<link rel="stylesheet" href="../js/poshytip-1.1/src/tip-yellowsimple/tip-yellowsimple.css"  />
	<script  src="../js/poshytip-1.1/src/jquery.poshytip.min.js"></script>
	<!-- ENDS poshytip -->

	<!-- JCarousel -->
	<script type="text/javascript" src="../js/jquery.jcarousel.min.js"></script>
	<link rel="stylesheet" media="screen" href="../css/carousel.css" />
	<!-- ENDS JCarousel -->

	<!-- GOOGLE FONTS -->
	<link href='http://fonts.googleapis.com/css?family=Voltaire' rel='stylesheet' type='text/css'>

	<!-- modernizr -->
	<script src="../js/modernizr.js"></script>

	<!-- SKIN -->
	<link rel="stylesheet" media="all" href="../css/skin.css"/>

	<!-- Less framework -->
	<link rel="stylesheet" media="all" href="../css/lessframework.css"/>

	<!-- jplayer -->
	<link href="../player-skin/jplayer-black-and-yellow.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="../js/jquery.jplayer.min.js"></script>

	<!-- flexslider -->
	<link rel="stylesheet" href="../css/flexslider.css" >
	<script src="../js/jquery.flexslider.js"></script>
	<!-- InstanceBeginEditable name="head" -->
	<!-- InstanceEndEditable -->
</head>

<body>

	<!-- HEADER -->
	<header>
		<div class="wrapper cf">

			<div id="logo">
				<a href="../">
					<img  src="../img/logo2.png" alt="Simpler"></a>
			</div>

		</div>
	</header>
	<!-- ENDS HEADER -->
	<!-- InstanceBeginEditable name="EditRegion1" -->
	<!-- MAIN -->
	<div id="main" style="padding-left: 30%;">
		<?php
		if(DataProvider::islogin($_SESSION)==0)
{
	require_once('formlogin.php');
}
else
{
	echo "Xin Chào ".$_SESSION["username"]." !!! Bạn đã đăng nhập"."<a href='thoat.php'>"." THOÁT".'</a>
	';
?>
	<br>
	<br>
	<table class="panel" width="50%">
		<tr>
			<td >
				<a href="../sanpham">
					<img src="../img/mono-icons/edit.png"></a>
			</td>
			<td>
				<a href="index.php?tab=3">
					<img src="../img/mono-icons/password.png"></a>
			</td>
			<td>
				<a href="index.php?tab=4">
					<img src="../img/mono-icons/control_banner.png"></a>
			</td>
			<td>
				<a href="index.php?tab=5">
					<img src="../img/mono-icons/changepassword_control.png"></a>
			</td>

		</tr>
		<tr>
			<td>
				<a href="../sanpham">Cập nhật sản phẩm</a>
			</td>
			<td>
				<a href="index.php?tab=3">Thay Đổi Thông Tin C.Ty</a>
			</td>
			<td>
				<a href="index.php?tab=4">Thay Đổi Ảnh Banner</a>
			</td>
			<td>
				<a href="index.php?tab=5">Đổi Mật Khẩu</a>
			</td>

		</tr>
	</table>
	<br>
	<?php } ?>
	<?php
$filename="../info.txt";
if(isset($_REQUEST["tab"]) && DataProvider::islogin($_SESSION)==1 && $_REQUEST["tab"]==3)
{
	$fp=DataProvider::docfile($filename);
	include_once('viewthongtincongty.php');
}
?>
<?php
// Lưu thông tin  cty
if (isset($_REQUEST["luu"]) && $_REQUEST["luu"]=="Lưu") {

 	DataProvider::ghifile($filename,$_REQUEST);
 }
?>

<?php
//Đổi banner
if(isset($_REQUEST["tab"]) && DataProvider::islogin($_SESSION)==1 && $_REQUEST["tab"]==4)
{
	include_once('viewbanner.php');
}
?>

<?php
//Đổi Mật Khẩu
if(isset($_REQUEST["tab"]) && DataProvider::islogin($_SESSION)==1 && $_REQUEST["tab"]==5)
{
	include_once('viewdoimatkhau.php');
}
?>
</div>

<!-- ENDS MAIN -->
<!-- InstanceEndEditable -->

</body>

<!-- InstanceEnd -->
</html>